<script>
    function jump(){
        window.location.href = "https://www.baidu.com";
    }
</script>
<span onclick="jump">跳转</span>